home *** CD-ROM | disk | FTP | other *** search
- /*
- File: HFSRecipient.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __HFSRECIPIENT__
- #define __HFSRECIPIENT__
-
- #ifndef __RECIPIENT__
- #include "Recipient.h"
- #endif
-
- /***********************************|****************************************/
-
- class THFSRecipient : public TRecipient
- {
- public:
- THFSRecipient(const RString& recipientName, Boolean responsible);
- ~THFSRecipient();
-
- // Recipient Name/Type or CID Methods
- // ==================================
- virtual Boolean GetRecipientName (TRString& name) const;
- virtual Boolean GetRecipientType (TRString& type) const;
-
- virtual Boolean GetCID (CreationID& cid) const;
-
- // Path Information
- // ================
- virtual Boolean IsPathInfoPresent () const; // return true if the recipient has any path information
- virtual Boolean IsPathInfoOptional () const; // return true if the path info is present but not required
- virtual Boolean IsNameAndPathUnique () const; // return true if the name & path info uniquely identify a recipient
-
- virtual unsigned short GetPathNameCount () const;
- virtual void GetPathNameItem (unsigned short item, TRString& nodeName) const;
-
- virtual Boolean GetDirectoryName (DirectoryName& directoryName) const;
-
- // Recipient Extension Data
- // ======================
- virtual Boolean IsAddressTypePresent () const; // return true if an address type is present
- virtual OSType GetAddressType () const;
- virtual unsigned long GetExtensionDataSize () const;
- virtual void GetExtensionData (unsigned long offset, void *buffer, unsigned long bufferSize) const;
-
- // Recpient Status
- // ===============
- virtual Boolean GetResponsible () const;
- virtual Boolean SetStatus ( RecipientStatusSet );
- virtual RecipientStatusSet GetStatus () const;
-
- // Debugging purposes only
- virtual ostream& DescribeSubclass(ostream& ) const;
- virtual ostream& operator >> (ostream& s) const;
-
- private:
- RString fName;
- Boolean fResponsible;
- DirectoryName fDirectoryName;
- short fPathNameElements;
- RStringPtr fPathNameItems[8];
- OSType fRecipientType;
- Ptr fExtensionValue;
- RecipientStatusSet fStatus;
- };
-
- /***********************************|****************************************/
-
- #endif // __HFSRECIPIENT__
-